//
//  InterfaceModel.m
//  goldmetal
//
//  Created by mac on 2017/1/19.
//  Copyright © 2017年 宏鹿. All rights reserved.
//

#import "InterfaceModel.h"

@implementation InterfaceModel

- (BOOL)yy_modelSetWithDictionary:(NSDictionary *)dictionary{
    BOOL success = [super yy_modelSetWithDictionary:dictionary];
    ResultModel *rmodel = [[ResultModel alloc]init];
    [rmodel yy_modelSetWithJSON:dictionary];
    self.object = rmodel;
    return success;
}

#pragma mark - public method

- (BOOL)serverException{//-1001超时
    if (_retCode==-1011 || _retCode==-1001 || _retCode==-1005 || _retCode==-1016 || _retCode==500 || _retCode==501 || _retCode==900 || _retCode==901) {
        _retMessage = @"您的网络状况不佳";
        return YES;
    }
    return NO;
}













@end
